ADP\BaseVersion\Includes\Core\Rule\SingleItemRule B

Total Complexity 80
Dependencies 9
Dependents 18
Total lines 724
Lines of code 263
Logical lines of code 105
Comment lines 264
Methods 62
Properties 27

Methods 62

Method Rating Maintainability Complexity Lines of code
__clone()
S
57 4 19
setRoleDiscounts()
S
67 3 8
setAutoAddStrategy()
S
64 2 13
setItemGiftStrategy()
S
64 2 13
__construct()
S
55 1 19
setItemGiftLimit()
S
78 2 3
hasConditionMessage()
S
79 2 3
hasProductRangeAdjustment()
S
79 2 3
hasProductAdjustment()
S
79 2 3
setApplyFirstTo()
S
66 2 10
installConditionMessageHandler()
S
74 2 5
installProductRangeAdjustmentHandler()
S
74 2 5
installProductAdjustmentHandler()
S
74 2 5
setFilters()
S
71 2 6
addFilter()
S
74 2 5
setAutoAddLimit()
S
78 2 3
getReplaceAutoAddsCode()
S
82 1 3
setReplaceAutoAdds()
S
80 1 3
setReplaceAutoAddsCode()
S
81 1 3
getAutoAddRemoveDisable()
S
82 1 3
setAutoAddRemoveDisable()
S
80 1 3
getAutoAddShowAsRecommended()
S
82 1 3
setAutoAddShowAsRecommended()
S
80 1 3
getRoleDiscounts()
S
82 1 3
setSortableBlocksPriority()
S
81 1 3
getSortableApplyMode()
S
82 1 3
setSortableApplyMode()
S
81 1 3
getSortableBlocksPriority()
S
82 1 3
getAutoAddSubtotalDivider()
S
82 1 3
isDontApplyBulkIfRolesMatched()
S
82 1 3
setDontApplyBulkIfRolesMatched()
S
81 1 3
setItemsCountLimit()
S
80 1 3
getItemsCountLimit()
S
82 1 3
isItemsCountLimitExists()
S
80 1 3
getApplyFirstTo()
S
82 1 3
setMaxAmountForGifts()
S
81 1 3
isReplaceAutoAdds()
S
82 1 3
setAutoAddUseProductFromFilter()
S
81 1 3
setAutoAddSubtotalDivider()
S
80 1 3
getItemGiftStrategy()
S
82 1 3
buildProcessor()
S
79 1 3
getFilters()
S
82 1 3
getProductAdjustmentHandler()
S
82 1 3
getProductRangeAdjustmentHandler()
S
82 1 3
getConditionMessageHandler()
S
82 1 3
setItemGifts()
S
77 1 4
getItemGiftsCollection()
S
82 1 3
setItemGiftsUseProductFromFilter()
S
81 1 3
isItemGiftsUseProductFromFilter()
S
82 1 3
getItemGiftLimit()
S
82 1 3
getAutoAddLimit()
S
82 1 3
setItemGiftSubtotalDivider()
S
80 1 3
getItemGiftSubtotalDivider()
S
82 1 3
isReplaceItemGifts()
S
82 1 3
setReplaceItemGifts()
S
80 1 3
getReplaceItemGiftsCode()
S
82 1 3
setReplaceItemGiftsCode()
S
81 1 3
setAutoAdds()
S
77 1 4
getAutoAddsCollection()
S
82 1 3
isAutoAddUseProductFromFilter()
S
82 1 3
getAutoAddStrategy()
S
82 1 3
getMaxAmountForGifts()
S
82 1 3